package org.fast.develop.logicflow.springboot;

import org.fast.develop.logicflow.core.meta.base.Resource;
import org.fast.develop.logicflow.core.meta.task.BrmsJavaClassTask;
import org.fast.develop.logicflow.springboot.configuration.LogicFlowElementRegistor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 莫寅
 * @createTime 2022-11-25 13:25
 * @desc：
 */
@Component
public class BrmsLogicFlowElementRegistor implements LogicFlowElementRegistor {

    @Override
    public Map<String, Class<? extends Resource>> getElement() {
        Map<String, Class<? extends Resource>> stringClasses = new HashMap<>();
        stringClasses.put("brmsJavaClassTask", BrmsJavaClassTask.class);
        return stringClasses;
    }
}
